package com.edu.bean;
/*
 * @Author:princess
 * @Date 2023/9/28 09 28 11:26
 *
 */

import java.util.List;

public class Author{
    private int authorId;
    private String authorName;
    private String authorSex;
    private int authorAge;
    private List<Book> bookList;

    public int getAuthorid() {
        return authorId;
    }

    public void setAuthorid(int authorid) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorSex() {
        return authorSex;
    }

    public void setAuthorSex(String authorSex) {
        this.authorSex = authorSex;
    }

    public int getAuthorAge() {
        return authorAge;
    }

    public void setAuthorAge(int authorAge) {
        this.authorAge = authorAge;
    }

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }

    @Override
    public String toString() {
        return "Author{" +
                "authorId=" + authorId +
                ", authorName='" + authorName + '\'' +
                ", authorSex='" + authorSex + '\'' +
                ", authorAge=" + authorAge +
                '}';
    }
}
